package com.fqgj.sentry.controller.antiFraud.response.anti.relation;

import com.fqgj.sentry.controller.antiFraud.response.anti.OrderInfo;

import java.io.Serializable;

/**
 * Created by liupengpeng on 2017/10/17.
 */
public class Node implements Serializable {
    //节点名称
    private String name;
    //节点类型  1：属性节点 2：订单节点
    private Integer nodeType;

    private OrderInfo orderInfo;

    private Boolean isRed = false;

    //是否是展开
    private Boolean isExtend = true;

    public Node(String name, Integer nodeType, OrderInfo orderInfo) {
        this.name = name;
        this.nodeType = nodeType;
        this.orderInfo = orderInfo;
    }

    public Node(String name, Integer nodeType, OrderInfo orderInfo, Boolean isRed, Boolean isExtend) {
        this.name = name;
        this.nodeType = nodeType;
        this.orderInfo = orderInfo;
        this.isRed = isRed;
        this.isExtend = isExtend;
    }

    public String getName() {
        return name;
    }

    public Node setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public Node setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
        return this;
    }

    public OrderInfo getOrderInfo() {
        return orderInfo;
    }

    public Node setOrderInfo(OrderInfo orderInfo) {
        this.orderInfo = orderInfo;
        return this;
    }

    public Boolean getRed() {
        return isRed;
    }

    public Node setRed(Boolean red) {
        isRed = red;
        return this;
    }

    public Boolean getExtend() {
        return isExtend;
    }

    public Node setExtend(Boolean extend) {
        isExtend = extend;
        return this;
    }
}
